package org.hashdb.client.util;

import org.hashdb.client.console.decorator.StringDecorator;

/**
 * Date: 2024/1/11 17:02
 *
 * @author huanyuMake-pecdle
 * @version 0.0.1
 */
public class Strings {
    public static StringDecorator d(String source) {
        return StringDecorator.d(source);
    }

    public static String trimRight(String s) {
        return s == null ? null : s.replaceFirst("\\s+$", "");
    }

    public static String trimLeft(String s) {
        return s == null ? null : s.replaceFirst("\\s+", "");
    }
}
